qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Just
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 24 Apr 2007 11:12:48 +0000 (12:12 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 24 Apr 2007 11:12:48 +0000 (12:12 +0100)
return zeroes. This path is triggered by ASPI8DOS.SYS in DRDOS.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/hw/lsi53c895a.c

index 24dff0eff5062f0858f8d02053b1c7e20fb2bfb8..908e856e706936f55e8cba99ea44a4bc9552946a 100644 (file)
@@ -1071,8 +1071,13 @@ static uint8_t lsi_reg_readb(LSIState *s, int offset)
         shift = (offset & 3) * 8;
         return (s->scratch[n] >> shift) & 0xff;
     }
+#ifndef CONFIG_DM
     BADF("readb 0x%x\n", offset);
     exit(1);
+#else
+    /* XEN: This path can be triggered (e.g. ASPI8DOS.SYS reads 0x8). */
+    return 0;
+#endif
 #undef CASE_GET_REG32
 }